package com.sopaths.utility.json;

import java.util.Map;

public class JsonMessage {
	private boolean successful;
	private String errorMessage;
	private Map<String, Object> data;

	public JsonMessage(boolean successful, String errorMessage, Map<String, Object> data) {
		super();
		this.successful = successful;
		this.errorMessage = errorMessage;
		this.data = data;
	}

	public boolean isSuccessful() {
		return successful;
	}

	public void setSuccessful(boolean successful) {
		this.successful = successful;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	public Map<String, Object> getData() {
		return data;
	}

	public void setData(Map<String, Object> data) {
		this.data = data;
	}
}
